bin/delta: Fix compilation with relative subdirs --filename
authorColin Walters <walters@verbum.org>
Thu, 18 Jan 2018 14:19:21 +0000 (09:19 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 22 Jan 2018 14:02:34 +0000 (14:02 +0000)
commit42eea23864194d7429c974938be529a641e4f2ba
tree0001943f31fb1a81ca0ac33d8440c6811f9aa0a0
parent661ec2b1a46a913845ab27d95ea86729b2807121
bin/delta: Fix compilation with relative subdirs --filename

Currently we were parsing `opt_filename` twice...I dug through
the history a bit and it looks like it may have been an accident
from refactoring.

What we're fixing here concretely is that using relative subdirectories
like `--filename somesubdir/foo` broke because we were incorrectly
passing the `somesubdir/` again.

Closes: #1423
Closes: #1427
Approved by: jlebon
src/libostree/ostree-repo-static-delta-compilation.c
tests/test-delta.sh